/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.service;

import com.intelligent.ispc.foundation.mail.MailConfiguration;
import com.intelligent.ispc.foundation.mail.EmailStatus;

import java.util.List;

/**
 * Created by Julia.Zhou on 2015/12/2.
 */
public interface EmailService {

    void saveEmail(MailConfiguration email);

    void updateEmail(MailConfiguration email);

    void updateEmailStatus(String emailId, EmailStatus status);

    void deleteEmail(String uuid);

    MailConfiguration findByUuid(String uuid);

    List<MailConfiguration> findByStatus(EmailStatus status);

    List<MailConfiguration> findAllEmails();
}
